﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CostItems_PlanPriceSetup.aspx.cs" Inherits="Hisun.View.PlanPrice.CostItems_PlanPriceSetup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
       <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">燃动计划价格管理</div></div>
    <div class ="CommonPage_Body">

     <table style="width:100%;">
            <tr>
                <td colspan="3">
                   
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="Label3" runat="server" Text="会计期间：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_Year" runat="server" SkinID="DropdownList">
                    </asp:DropDownList>
                    <asp:DropDownList ID="DropDownList_Month" runat="server" Height="16px" 
                        SkinID="DropdownList" Width="51px">
                    </asp:DropDownList>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" onclick="Button_Query_Click" 
                        Text="查询" /></td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Panel ID="Panel_MainQuery" runat="server">
                        <asp:GridView ID="GridView_QueryPrice" runat="server" 
                            AutoGenerateColumns="False" SkinID="GridView">
                            <Columns>
                                <asp:BoundField DataField="会计期间ID" HeaderText="会计期间" />
                                <asp:BoundField DataField="成本细项名称" HeaderText="成本细项名称" />
                                <asp:TemplateField HeaderText="计划价">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox_PlanPrice" runat="server" SkinID="TextBox" 
                                            Text='<%# String.Format("{0:N4}",Eval("计划价")) %>'></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                            ControlToValidate="TextBox_PlanPrice" ErrorMessage="*" 
                                            ValidationExpression="\d{1,12}(\.\d{1,4})?" ValidationGroup="Group"></asp:RegularExpressionValidator>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Button SkinID = "Button" ID="Button_SavePrice" runat="server" 
                                            CommandArgument='<%# Eval("成本细项ID") %>' oncommand="Button_SavePrice_Command" 
                                            Text="保存" ValidationGroup="Group" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                        <asp:HiddenField ID="CurrentAp" runat="server" Value="0" />
                    </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
<%  = alert %>